package com.example.szh.mvp.contract;

import com.example.szh.entity.BaseEntity;
import com.example.szh.nextwork.model.IModel;
import com.example.szh.nextwork.view.IView;

import java.util.Map;

import io.reactivex.Observable;

public interface LREContract {
    interface ILREModel extends IModel{
        //列表界面无论多少接口全部合并请求
        Observable<BaseEntity> requestAll(Map<String,Object> ... maps);
        Observable<BaseEntity> request_refresh_load(Map<String,Object> map);
    }
    interface ILREView extends IView{
        //全部数据请求返回方法
        void refreshAll(BaseEntity entity);
        //下拉数据返回
        void refreshRecyckerView(BaseEntity entity);
        //上拉加载数据
        void loadMoreRecyclerView(BaseEntity entity);
    }
}
